import request from '@/utils/request'

// 查询个人钱包流水记录列表
export function listDealPerson(query) {
  return request({
    url: '/consumer/dealPerson/list',
    method: 'get',
    params: query
  })
}

// 查询个人钱包流水记录详细
export function getDealPerson(dealRecordId) {
  return request({
    url: '/consumer/dealPerson/' + dealRecordId,
    method: 'get'
  })
}

// 新增个人钱包流水记录
export function addDealPerson(data) {
  return request({
    url: '/consumer/dealPerson',
    method: 'post',
    data: data
  })
}

// 修改个人钱包流水记录
export function updateDealPerson(data) {
  return request({
    url: '/consumer/dealPerson',
    method: 'put',
    data: data
  })
}

// 删除个人钱包流水记录
export function delDealPerson(dealRecordId) {
  return request({
    url: '/consumer/dealPerson/' + dealRecordId,
    method: 'delete'
  })
}
